<!DOCTYPE html>
<html>
<head>
    <title>商品管理</title>
    <link rel="stylesheet" type="text/css" href="/css/styles.css">
    <script src="/js/manage.js" defer></script>
</head>
<body>
    <header>
        <h1>商品管理</h1>
        <a href="/user">返回用户主页</a>
    </header>

    <section>
        <h2>我的商品</h2>
        <ul id="product-list">
        </ul>
        <button onclick="showAddProductForm()">添加商品</button>
        <form id="add-product-form" action="/product/add-product" method="post" style="display:none;">
            <label>商品名称:</label>
            <input type="text" name="name" required>
            <label>价格:</label>
            <input type="number" name="price" required>
            <label>描述:</label>
            <textarea name="description" required></textarea>
            <button type="submit">添加</button>
        </form>
    </section>
</body>
</html>